package com.wanjia.bpsapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanjia.bpsapi.pojo.dto.DefaultDataDto;
import com.wanjia.bpsapi.pojo.entity.DefaultData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 默认数据表 Mapper 接口
 * </p>
 *
 * @author wyn
 * @since 2023-02-13
 */
@Repository
public interface DefaultDataMapper extends BaseMapper<DefaultData> {

    int updateData(Long uid, BigDecimal gross, BigDecimal discount, BigDecimal businessExpense);

    List<DefaultDataDto> getData(Integer uid, Integer pageNo, Integer pageSize);

    DefaultData selectByUid(@Param("uid") Long uid);
}
